#include <dispatch/base.h>
Go to the source code of this file.
Typedefs | |
typedef struct dispatch_semaphore_s * | dispatch_semaphore_t |
A counting semaphore. | |
Functions | |
dispatch_semaphore_t | dispatch_semaphore_create (long value) |
Creates new counting semaphore with an initial value. | |
long | dispatch_semaphore_wait (dispatch_semaphore_t dsema, dispatch_time_t timeout) |
Wait (decrement) for a semaphore. | |
long | dispatch_semaphore_signal (dispatch_semaphore_t dsema) |
Signal (increment) a semaphore. |